package com.goodomen.garbage.service.api;

import com.goodomen.garbage.feign.client.GarbageScoreClientFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DemoWebService {

    private final GarbageScoreClientFeign garbageScoreClientFeign;

    @Autowired
    public DemoWebService(GarbageScoreClientFeign garbageScoreClientFeign) {
        this.garbageScoreClientFeign = garbageScoreClientFeign;
    }

    public  String sayHi(String name){

        // WEB Service 调用积分 score项目
        return garbageScoreClientFeign.sayHiFromClientEureka();
    }
}
